﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lianxi
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["User"]!=null)
                {
                    Label1.Text = Session["User"].ToString();
                }
                else
                {
                    Response.Redirect("Login.aspx");
                }
            }
            lblOnline.Text = "在线人数：" + Application["onLine"].ToString();
        }
    }
}